home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19970929-19971216 / 000038_news@newsmaster….columbia.edu _Fri Oct 3 10:57:37 1997.msg < prev    next >
Internet Message Format  |  1997-12-15  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA28520
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 3 Oct 1997 10:57:37 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id KAA11572
  7.     for kermit.misc@watsun; Fri, 3 Oct 1997 10:57:37 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Kermit via PPP under DOS?
  12. Date: 3 Oct 1997 14:57:35 GMT
  13. Organization: Columbia University
  14. Lines: 33
  15. Message-ID: <61314v$bsc$1@apakabar.cc.columbia.edu>
  16. References: <60i3al$8l@gateway.dircsa.org.au> <60km6a$jsb@gateway.dircsa.org.au> <om90wf99m1.fsf@tees.cs.ualberta.ca>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:7805
  19.  
  20. In article <om90wf99m1.fsf@tees.cs.ualberta.ca>,
  21. Vladimir Alexiev  <vladimir@cs.ualberta.ca> wrote:
  22. : In article <60km6a$jsb@gateway.dircsa.org.au>
  23. : arthur@gateway.dircsa.org.au (Arthur Marsh) writes:
  24. : > "check tcp" only determines whether support is compiled in.
  25. : > I did the following in my MSCUSTOM.INI to have a single configuration for 
  26. : > both serial and IP connections:
  27. : > 
  28. : > set port tcp/ip <ip-address>
  29. : > if success forward passedserial
  30. : I think that this will always succeed, because the actual connection is only
  31. : attempted when CONNECT is issued. You should check "if success" after
  32. : CONNECT, and if it's failed eventually examine \v(tcpip_status).
  33. :
  34. There is actually a better way.  The way MS-DOS Kermit is structured, as
  35. Vladimir points out, SET PORT TCP merely declares the name of the host to be
  36. connected to, but otherwise does nothing.  Various other commands like
  37. CONNECT open the connection if it is not yet open.  But of course you don't
  38. want to use CONNECT in a script, because then the script loses control.
  39.  
  40. Another command also opens the connection if it is not open, but does nothing
  41. more:
  42.  
  43.   PAUSE 0
  44.  
  45. (or "pause" anything-else").  So a common practice is to define a TELNET
  46. macro like this:
  47.  
  48.   DEFINE TELNET SET PORT TCP \%1, PAUSE 0, IF SUCCESS CONNECT
  49.  
  50. - Frank